<html>
<head><meta charset="utf-8"><title>cargo installing locally · t-cargo · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/246057-t-cargo/index.html">t-cargo</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/246057-t-cargo/topic/cargo.20installing.20locally.html">cargo installing locally</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="219239135"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/246057-t-cargo/topic/cargo%20installing%20locally/near/219239135" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Andy Russell <a href="https://rust-lang.github.io/zulip_archive/stream/246057-t-cargo/topic/cargo.20installing.20locally.html#219239135">(Dec 08 2020 at 17:53)</a>:</h4>
<p>I'm trying to locally install a specific git branch of <code>wasm-pack</code> into my repository so that my build can use the local version. I'm installing it into the repo by setting <code>CARGO_INSTALL_ROOT=./.cargo</code>. This works, but if I run the command again the binary gets reinstalled every time instead of detecting that it's already there. Is there a way for cargo to detect this like it does for global installs?</p>



<a name="219240021"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/246057-t-cargo/topic/cargo%20installing%20locally/near/219240021" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Josh Triplett <a href="https://rust-lang.github.io/zulip_archive/stream/246057-t-cargo/topic/cargo.20installing.20locally.html#219240021">(Dec 08 2020 at 18:00)</a>:</h4>
<p>Related: <a href="https://github.com/rust-lang/rfcs/pull/3028/">https://github.com/rust-lang/rfcs/pull/3028/</a> may help you.</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>